import request from '@/utils/request'

// 查询候选人公示列表
export function listOpen(query) {
  return request({
    url: '/purs/open/list',
    method: 'get',
    params: query
  })
}

// 查询候选人公示详细
export function getOpen(openId) {
  return request({
    url: '/purs/open/' + openId,
    method: 'get'
  })
}

// 新增候选人公示
export function addOpen(data) {
  return request({
    url: '/purs/open',
    method: 'post',
    data: data
  })
}

// 修改候选人公示
export function updateOpen(data) {
  return request({
    url: '/purs/open',
    method: 'put',
    data: data
  })
}

// 删除候选人公示
export function delOpen(openId) {
  return request({
    url: '/purs/open/' + openId,
    method: 'delete'
  })
}
